package com.bootdo.backlist.form;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.bootdo.common.interfaces.Add;
import com.bootdo.common.interfaces.Login;
import com.bootdo.common.interfaces.Reset;
import com.bootdo.common.interfaces.Transfer;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 用户表
 * 
 * @author zengcx
 * @email 13851161069@163.com
 * @date 2019-04-10 17:06:08
 */
@Data
public class AppuserForm implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//接收人
	@NotNull(message = "接收人ID不能为空",groups = {Transfer.class})
	private Long userId;
	//积分
	@NotNull(message = "积分不能为空",groups = {Transfer.class})

	@Min(message = "转移积分不得小于1",value = 1,groups = {Transfer.class})
	private BigDecimal integral;
	//头像
	@NotBlank(message = "头像不能为空",groups = {Add.class})
	private String avatar;
	//性别，1男2女
	@NotNull(message = "性别不能为空",groups = {Add.class})
	private Integer sex;
	//座右铭
	private String motto;
	//昵称
	@NotBlank(message = "昵称不能为空",groups = {Add.class})
	private String nickname;
	//登录账号
	@NotBlank(message = "登录账号不能为空",groups = {Add.class, Login.class})
	private String account;
	//密码
	@NotBlank(message = "密码不能为空",groups = {Add.class, Login.class,Reset.class})
	private String password;

	@NotBlank(message = "再次输入密码",groups = {Add.class,Reset.class})
	private String restPassword;
	//手机号
	@NotBlank(message = "手机号不能为空",groups = {Add.class,Reset.class})
	private String phone;
	//关注
	private String attention;

	//转移人
	@NotNull(message = "转移人ID不能为空",groups = {Transfer.class})
	private Long transferUserId;

	@NotBlank(message = "验证码不能为空",groups = {Add.class, Reset.class})
	private String code;
}
